//
// Created by wang on 2021/7/6.
//

#include "err.h"

int main() {
    err_init();
    for (int i = 0; i < ERR_MAX_ERR; i++) {
        printf("%d    %s\n", dbg_g_err_proc_all[i].code, dbg_g_err_proc_all[i].desc);
        printf("%s\n", err_to_str(dbg_g_err_proc_all[i].code, NULL));
        if (strcmp(dbg_g_err_proc_all[i].desc,
                   err_to_str(dbg_g_err_proc_all[i].code, NULL)) != 0) {
            printf("0\n");
            return 0;
        }
    }
    printf("1\n");
    return 0;
}